home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2007 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: news.cs.tut.fi!usenet
  2. From: p150650@korppi.cs.tut.fi (Tero Pulkkinen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: g++ generating huge executables for simple programs
  5. Date: 15 Jan 1996 15:20:27 +0200
  6. Organization: Tampere University of Technology, Finland
  7. Sender: p150650@korppi.cs.tut.fi
  8. Distribution: inet
  9. Message-ID: <xdu68edegro.fsf@korppi.cs.tut.fi>
  10. References: <4d3vuk$7l9@cloner2.ix.netcom.com>
  11. NNTP-Posting-Host: korppi.cs.tut.fi
  12. NNTP-Posting-User: p150650
  13. In-reply-to: ruiner@ix.netcom.com's message of Thu, 11 Jan 1996 21:35:46 GMT
  14. X-Newsreader: Gnus v5.0.13
  15.  
  16.        G++ is generating HUGE executable files for source code that is only
  17.    five or six lines long on the CS computers at my school
  18.    (pegasus.cs.tulane.edu). A program called "strip" seems to reduce the
  19.    problem to about 180K, but thats still a gross waste of space. Are the
  20.    CS administrators correct in saying nothing more can be done to
  21.    alleviate the problem? I believe they are running a recent ver of IBM
  22.    AIX, if thats any help. I cannot write serious programs if they turn
  23.    out so wastefully big, so please help. email and post please.
  24.  
  25. Check out which libraries does it include to your program, and when
  26. necessary, replace the libraries with your own versions of the
  27. library. Also there's usually startupcode which parses argc and argv
  28. and initializes stack included. Those are the only things you can
  29. take from the file size. Tho, removing either of those will disable
  30. some of the features standard C offers, like displaying text or 
  31. opening files. (These are for any compiler, and i'm not saying this
  32. is possible or feasible in g++)
  33. But trying to figure out what's in those 180kb will help for sure.
  34.  
  35.  
  36. -- Tero Pulkkinen -- terop@kotka.cs.tut.fi --
  37.